home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Trees / RedBlackLinkTree.cp < prev    next >
Encoding:
Text File  |  1997-06-28  |  521 b   |  23 lines  |  [TEXT/CWIE]

  1. // RedBlackLinkTree.cp
  2.  
  3. #ifndef RedBlackLinkTree_h
  4. #include "RedBlackLinkTree.h"
  5. #endif
  6. #ifndef RedBlackLink_h
  7. #include "RedBlackLink.h"
  8. #endif
  9.  
  10. template < class Key, class Content >
  11. RedBlackLink<Key,Content> *RedBlackLinkTree<Key,Content>::DownCast( NodeBase *n )
  12.   {
  13.     return static_cast< Node* >( n );
  14.   }
  15.  
  16. template < class Key, class Content >
  17. const RedBlackLink<Key,Content> *RedBlackLinkTree<Key,Content>::DownCast( const NodeBase *n )
  18.   {
  19.     return static_cast< const Node* >( n );
  20.   }
  21.  
  22. #include "RedBlackKeyTree.cp"
  23.